package com.seata.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("account")
public class Account {

    @TableId("id")
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 总额度
     */
    @TableField("total")
    private BigDecimal total;

    /**
     * 已用额度
     */
    @TableField("used")
    private BigDecimal used;

    /**
     * 剩余额度
     */
    @TableField("residue")
    private BigDecimal residue;
}
